package com.pig4cloud.pig.demo.Service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.pig4cloud.pig.demo.feign.Entity.LoginForm;
import com.pig4cloud.pig.demo.feign.Entity.User;
import com.pig4cloud.pig.demo.feign.Entity.UserInfo;

import java.util.List;
import java.util.Map;

public interface UserService extends IService<User> {
    public List<User> findAll();

    public int insert(User user);

    public String login(LoginForm loginForm);

    public int deleteById(Long deleted);

    public boolean msgSend(String phoneNumber, Map<String, String> param);

    public User findPhoneNumber(String phoneNumber);

    public User findById(Long id);

    public UserInfo updatePwd(String id, String oldPwd, String newPwd);

    //修改手机号
    public void updatePhone(String id,String phone);

    //修改邮箱号
    public void updateEmail(String id,String email);
}
